home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 144 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: news.cs.ucla.edu!twinsun!not-for-mail
  2. From: eggert@twinsun.com (Paul Eggert)
  3. Newsgroups: comp.std.c
  4. Subject: Re: brief summary of Technical Corrigendum 2
  5. Date: 19 Jan 1996 00:12:14 -0800
  6. Organization: Twin Sun Inc, El Segundo, CA, USA
  7. Message-ID: <4dnjou$rmi@der.twinsun.com>
  8. References: <4d554m$q4b@news1.halcyon.com> <4dfgdt$se6@der.twinsun.com> <DLC97p.88M@stdc.demon.co.uk> <4dloed$oi1@info1.sdrc.com>
  9. NNTP-Posting-Host: der.twinsun.com
  10.  
  11. scjones@thor.sdrc.com (Larry Jones) writes:
  12.  
  13. > I suspect that what Paul meant to say was that the pairs cannot interleave.
  14.  
  15. >        VALID                   INVALID
  16. >   -----------------        -----------------
  17. >   va_start(a, foo);        va_start(a, foo);
  18. >   va_start(b, foo);        va_start(b, foo);
  19. >   va_end(b);               va_end(a);
  20. >   va_end(a);               va_end(b);
  21.  
  22. Sorry, I was too terse there.  Here's what Gwyn's article says:
  23.  
  24.     In subclause 7.8.1, page 122, line 21, change:
  25.         invoked
  26.     to:
  27.         invoked in corresponding pairs
  28.  
  29.     Append to subclause 7.8.1.1, page 122, line 29:
  30.         `va_start' shall not be invoked again for the same `ap' without
  31.         an intervening invocation of `va_end' for the same `ap'.
  32.  
  33. So assuming a != b, both columns quoted above are conforming.
  34. But the following is not conforming:
  35.  
  36.     va_start(a, foo);
  37.     va_start(a, foo);
  38.     va_end(a);
  39.     va_end(a);
  40.  
  41. and that is what I meant when I wrote ``the pairs cannot nest''.
  42.